﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Uber.Core.Model.Comment>" %>
<%@ Import Namespace="Uber.WebUI" %>
<%@ Import Namespace="Uber.WebUI.Controllers" %>
<li class="comment" data-val="<%=Model.Id %>">
    <div class="ceditor hid">
    <div class="cederr"></div>
        <textarea rows="3" cols="20" class="cbody"><%:Model.Body %></textarea>
        <textarea rows="1" cols="1" class="bcbody hid"></textarea>
        <input type="button" value="Save" class="grbtn btn-csave" />
        <input type="button" value="Cancel" class="grbtn btn-ccancel" />
    </div>
    <div class="cb ib">
    </div>
    <span style="color: gray">
        <%=Ui.DateAgo(Model.CreationDate) %></span> <span style="color: green">
            <%=Model.Owner.DisplayName %></span>
    <% if (Gl.Allow(Model.OwnerId))
       {%>
    <a class="cedit" href="">edit</a> <a class="cdell" href="">delete</a>
    <%}%>
</li>
